<%@ page import="edu.uow.devdocs.TimeTracker" %>



<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'dateOfWork', 'error')} required">
	<label for="dateOfWork">
		<g:message code="timeTracker.dateOfWork.label" default="Date Of Work" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateOfWork" precision="day"  value="${timeTrackerInstance?.dateOfWork}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'hours', 'error')} required">
	<label for="hours">
		<g:message code="timeTracker.hours.label" default="Hours" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="hours" step="0.01" min="0.25" max="10.0" required="" value="${fieldValue(bean: timeTrackerInstance, field: 'hours')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'comments', 'error')} ">
	<label for="comments">
		<g:message code="timeTracker.comments.label" default="Comments" />
		
	</label>
	<g:textArea name="comments" cols="40" rows="5" maxlength="2000" value="${timeTrackerInstance?.comments}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'taskId', 'error')} ">
	<label for="taskId">
		<g:message code="timeTracker.taskId.label" default="Task Id" />
		
	</label>
	<g:field type="number" name="taskId" value="${fieldValue(bean: timeTrackerInstance, field: 'taskId')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'project', 'error')} required">
	<label for="project">
		<g:message code="timeTracker.project.label" default="Project" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="project" name="project.id" from="${edu.uow.devdocs.Project.list()}" optionKey="id" required="" value="${timeTrackerInstance?.project?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'phase', 'error')} required">
	<label for="phase">
		<g:message code="timeTracker.phase.label" default="Phase" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="phase" name="phase.id" from="${edu.uow.devdocs.Phase.list()}" optionKey="id" required="" value="${timeTrackerInstance?.phase?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'person', 'error')} required">
	<label for="person">
		<g:message code="timeTracker.person.label" default="Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person" name="person.id" from="${edu.uow.devdocs.Person.list()}" optionKey="id" required="" value="${timeTrackerInstance?.person?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'downtimeReport', 'error')} required">
	<label for="downtimeReport">
		<g:message code="timeTracker.downtimeReport.label" default="Downtime Report" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="downtimeReport" name="downtimeReport.id" from="${edu.uow.devdocs.DowntimeReport.list()}" optionKey="id" required="" value="${timeTrackerInstance?.downtimeReport?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'issue', 'error')} required">
	<label for="issue">
		<g:message code="timeTracker.issue.label" default="Issue" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="issue" name="issue.id" from="${edu.uow.devdocs.Issue.list()}" optionKey="id" required="" value="${timeTrackerInstance?.issue?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'developmentTask', 'error')} required">
	<label for="developmentTask">
		<g:message code="timeTracker.developmentTask.label" default="Development Task" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="developmentTask" name="developmentTask.id" from="${edu.uow.devdocs.DevelopmentTask.list()}" optionKey="id" required="" value="${timeTrackerInstance?.developmentTask?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'developmentChecklist', 'error')} required">
	<label for="developmentChecklist">
		<g:message code="timeTracker.developmentChecklist.label" default="Development Checklist" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="developmentChecklist" name="developmentChecklist.id" from="${edu.uow.devdocs.DevelopmentChecklist.list()}" optionKey="id" required="" value="${timeTrackerInstance?.developmentChecklist?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: timeTrackerInstance, field: 'deployment', 'error')} required">
	<label for="deployment">
		<g:message code="timeTracker.deployment.label" default="Deployment" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="deployment" name="deployment.id" from="${edu.uow.devdocs.Deployment.list()}" optionKey="id" required="" value="${timeTrackerInstance?.deployment?.id}" class="many-to-one"/>
</div>

